import { PrimaryGeneratedColumn } from 'typeorm';
import { Column } from 'typeorm';
import { Entity } from 'typeorm';

@Entity('users')
export class users{

    @PrimaryGeneratedColumn({ comment: 'id' })
    id: number;

    @Column({ comment: '用户名' })
    username: string;

    @Column({ comment: '密码' })
    password: string;

    @Column({ comment: '姓名' ,nullable:true})
    uname: string;
    
}